package com.globaldom.utils;

import java.io.Serializable;
import java.text.DateFormat;
import java.util.Date;

public class Notifications implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private Long sender;
	private String receipient;
	private String subject;
	private String msgBody;
	private String sendDate = DateFormat.getDateTimeInstance(DateFormat.MEDIUM, DateFormat.SHORT).format(new Date());
	private String msgType;

	public boolean sendNotification(Long frommsg, Long tomsg, String msg) {
		return true;
	}

	public static void notifyMessage(String receipient, String msg) {

		Notifications notice = new Notifications(receipient, msg, "");
		MemCacheManager.addNotification(receipient, notice);

	}

	public Notifications(String receipient, String msgbody, String subject) {
		this.receipient = receipient;
		this.msgBody = msgbody;
		this.subject = subject;
	}
	public Long getSender() {
		return sender;
	}

	public void setSender(Long sender) {
		this.sender = sender;
	}

	public String getReceipient() {
		return receipient;
	}

	public void setReceipient(String receipient) {
		this.receipient = receipient;
	}

	public String getMsgType() {
		return msgType;
	}

	public void setMsgType(String msgType) {
		this.msgType = msgType;
	}

	public String getSubject() {
		return subject;
	}

	public void setSubject(String subject) {
		this.subject = subject;
	}

	public String getMsgBody() {
		return msgBody;
	}

	public void setMsgBody(String msgBody) {
		this.msgBody = msgBody;
	}

	public String getSendDate() {
		return sendDate;
	}

	public void setSendDate(String sendDate) {
		this.sendDate = sendDate;
	}

}
